#include "Customer.hh"

Customer::Customer(const std::string& name) : name(name) {}

Customer::~Customer() {
    for (auto acc : accounts) delete acc;
}

void Customer::addAccount(Account* acc) {
    accounts.push_back(acc);
}

std::string Customer::getName() const {
    return name;
}

const std::vector<Account*>& Customer::getAccounts() const {
    return accounts;
}